package IC.AST.nodes;

import IC.AST.*;

/**
 * a type which is an array
 */
public class ArrayType extends Type {
	private Type elemType;	// the element type

	/**
	 * @param elemType the element type
	 * @param line the node line number
	 * @param column the node column number
	 */
	public ArrayType(Type elemType, int line, int column) {
		super(line,column);
		this.elemType = elemType;
	}

	/**
	 * @return the element type
	 */
	public Type getElemType() {
		return this.elemType;
	}

	public Object accept(Visitor v) {
		return v.visit(this);
	}
}
